package com.yangji.rxjavatest.home.presenter;

import com.yangji.rxjavatest.home.contract.DeviceContract;
import com.yangji.rxjavatest.repository.DeviceRepository;


public class DevicePresenter implements DeviceContract.Presenter {

    private DeviceRepository repository;
    private DeviceContract.View view;

    public DevicePresenter() {
        repository = new DeviceRepository();
    }

    @Override
    public DeviceContract.Presenter setView(DeviceContract.View view) {
        this.view = view;
        return this;
    }

    @Override
    public void getDeviceToken() {
        repository.getDeviceToken();
    }




}
